package com.smallx.xpath.streaming;

import com.smallx.xpath.SimpleStaticContext;
import com.smallx.xpath.StaticContext;
import com.smallx.xpath.XPathCompiler;
import com.smallx.xpath.XPathFactory;
import java.net.URI;
import java.util.*;
import org.infoset.xml.Name;

public class XPathSubsetFactory implements XPathFactory {

   
   StaticContext noContext = new SimpleStaticContext(null,new HashMap<String,URI>(),new HashSet<Name>());
   
   public XPathCompiler newCompiler() {
      return new SubsetXPathCompiler(noContext);
   }
   
   public XPathCompiler newCompiler(StaticContext context) {
      return new SubsetXPathCompiler(context);
   }
   
}
